← Back
Editing: migrate-detail.js
import{c as t,r as e,p as a,G as s,q as l,v as n,y as o,B as i,z as m,x as r,e as c,A as d,H as u,F as x,b0 as f,M as p,J as g,C as v,N as y,P as h,aQ as b,ax as k,bx as w,by as _}from"./base-lib.js?v=1765440387";import{v as j,k as C,e as K}from"./utils-lib.js?v=1765440387";import{g as q,o as L,s as z,a as H,t as N,w as P,b as V,d as F,c as M,e as S,f as A,h as B,i as G,j as I,p as J,r as Q,k as T}from"./index9.js?v=1765440387";import{s as U,q as W,v as D,C as E,F as O}from"./useMethod2.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./index105.js?v=1765440387";import"./form-item.js?v=1765440387";import"./index95.js?v=1765440387";import"./config.js?v=1765440387";import"./useController2.js?v=1765440387";import"./validator.js?v=1765440387";import"./column.js?v=1765440387";const R={class:"p-[2rem]"},X={class:"mb-[2rem] ml-[3.2rem] flex items-center"},Y={class:g("flex flex-row")},Z={class:"flex items-center"},$={key:0,class:"text-[#666] text-[1.2rem]"},tt={key:1,class:"svgtofont-el-loading text-[#666] text-[1.2rem] animate-spin ml-[0.4rem]"},et={class:"flex items-center"},at={key:0,class:"text-[#666] text-[1.2rem]"},st={key:1,class:"svgtofont-el-loading text-[#666] text-[1.2rem] animate-spin ml-[0.4rem]"},lt={class:"flex items-center"},nt={key:0,class:"text-[#666] text-[1.2rem] ml-[0.4rem]"},ot={key:1,class:"svgtofont-el-loading text-[#666] text-[1.2rem] animate-spin ml-[0.4rem]"},it={class:"flex items-center"},mt={class:"font-bold"},rt={key:1,class:"text-[#666] text-[1.2rem]"},ct={key:2,class:"svgtofont-el-loading text-[#666] text-[1.2rem] animate-spin ml-[0.4rem]"},dt=["v-bt-loading:title"],ut={key:0,class:"w-full max-h-[96px] overflow-y-auto border-css"},xt={class:"w-[33.33%] inline-flex items-center px-[0.8rem]"},ft={class:"check-name"},pt={key:0},gt={key:1,class:"empty-box"},vt={class:"flex items-center"},yt={key:0,class:"text-[#666] text-[1.2rem] ml-[0.4rem]"},ht={key:1,class:"svgtofont-el-loading text-[#666] text-[1.2rem] animate-spin ml-[0.4rem]"},bt={class:"flex items-center"},kt={key:0,class:"text-[#666] text-[1.2rem] ml-[0.4rem]"},wt={key:1,class:"svgtofont-el-loading text-[#666] text-[1.2rem] animate-spin ml-[0.4rem]"},_t=K(t({__name:"migrate-detail",setup(t){const K=e("site");return a(q),(t,e)=>{const a=b,q=k,_t=C,jt=w,Ct=_,Kt=s("bt-loading");return l(),n("div",R,[o("p",X,[i(" 迁移数据大小:"+m(r(L))+" ,当前服务器剩余空间:"+m(r(z))+" ",1),c(a,{class:"item",effect:"dark",placement:"top-start"},{content:d((()=>[i(" 推断所需迁移空间:"+m(r(j)(1.5*r(H).use))+" ",1),e[1]||(e[1]=o("br",null,null,-1)),e[2]||(e[2]=i(" 说明:因数据备份需要复制后压缩,会比实际占用更多的空间,因此推断大小为迁移数据大小的1.5倍 "))])),default:d((()=>[e[3]||(e[3]=o("i",{class:"svgtofont-el-warning-filled text-warning text-[1.4rem] ml-[0.4rem]"},null,-1))])),_:1})]),o("div",Y,[e[16]||(e[16]=o("span",{class:"text-[1.2rem] text-[#666] min-w-[8rem] text-right mr-[2rem]"},"备份数据",-1)),c(Ct,{modelValue:r(K),"onUpdate:modelValue":e[0]||(e[0]=t=>h(K)?K.value=t:null),class:"flex-1",accordion:""},{default:d((()=>[c(jt,{name:"site"},{title:d((()=>{var t;return[o("div",Z,[e[5]||(e[5]=o("i",{class:"svgtofont-left-home desc-i"},null,-1)),e[6]||(e[6]=o("span",{class:"font-bold"},"网站",-1)),c(q,{trigger:"hover",placement:"top-start",width:"400",content:"备份网站是会自动备份Nginx配置,SSL证书,PHP配置,重定向和反向代理等除插件外与该网站相关的配置"},{reference:d((()=>e[4]||(e[4]=[o("i",{class:"svgtofont-el-question-filled text-warning text-[1.4rem] mx-[0.4rem]"},null,-1)]))),_:1}),r(N).site?(l(),n("i",tt)):(l(),n("span",$,"(共"+m((null==(t=r(P))?void 0:t.length)||0)+"个,共"+m(r(V))+")",1))])]})),default:d((()=>[u(c(_t,{column:r(U),data:r(P),"max-height":200},null,8,["column","data"]),[[Kt,r(N).site],[Kt,"正在获取网站中,请稍后...","title"]])])),_:1}),c(jt,{name:"database"},{title:d((()=>{var t;return[o("div",et,[e[7]||(e[7]=o("i",{class:"svgtofont-left-database desc-i"},null,-1)),e[8]||(e[8]=o("span",{class:"font-bold"},"数据库",-1)),r(N).database?(l(),n("i",st)):(l(),n("span",at,"(共"+m((null==(t=r(F))?void 0:t.length)||0)+"个,共"+m(r(M))+")",1))])]})),default:d((()=>[u(c(_t,{column:r(W),data:r(F),"max-height":200},null,8,["column","data"]),[[Kt,r(N).database],[Kt,"正在获取数据库中,请稍后...","title"]])])),_:1}),c(jt,{name:"wptools"},{title:d((()=>{var t;return[o("div",lt,[e[9]||(e[9]=o("i",{class:"svgtofont-left-wp desc-i"},null,-1)),e[10]||(e[10]=o("span",{class:"font-bold"},"Wp Tools",-1)),r(N).wptools?(l(),n("i",ot)):(l(),n("span",nt,"(共"+m((null==(t=r(S))?void 0:t.length)||0)+"个,共"+m(r(A))+")",1))])]})),default:d((()=>[u(c(_t,{column:r(D),data:r(S),"max-height":150},null,8,["column","data"]),[[Kt,r(N).wptools],[Kt,"正在获取网站中,请稍后...","title"]])])),_:1}),(l(!0),n(x,null,f(r(B),((t,a)=>(l(),p(jt,{key:a,name:a.toLowerCase()},{title:d((()=>{var a;return[o("div",it,[o("i",{class:g("svgtofont-left-".concat(t.icon," desc-i"))},null,2),o("span",mt,m(t.title),1),t.tooltip?(l(),p(q,{key:0,trigger:"hover",placement:"top-start",width:"400",content:t.tooltip},{reference:d((()=>e[11]||(e[11]=[o("i",{class:"svgtofont-el-question-filled text-warning text-[1.4rem] mx-[0.4rem]"},null,-1)]))),_:2},1032,["content"])):v("",!0),r(N)[t.loadingKey.toLowerCase()]?(l(),n("i",ct)):(l(),n("span",rt,"(共"+m((null==(a=r(G)[t.dataKey])?void 0:a.length)||0)+"个"+m(t.count?",共"+r(I)(t.dataKey):"")+")",1)),t.extraComponent?(l(),p(y(t.extraComponent),{key:3})):v("",!0)])]})),default:d((()=>[u((l(),n("div",{"v-bt-loading:title":"正在获取".concat(t.title,"中,请稍后...")},[r(G)[t.dataKey].length?(l(),n("div",ut,[(l(!0),n(x,null,f(r(G)[t.dataKey],((e,a)=>(l(),n(x,{key:a},[o("span",xt,[o("span",ft,m(e.name)+m(e.size?"(".concat(r(j)(Number(e.size)),")"):"")+" "+m(e.total?"(".concat(e.total,"条)"):""),1)]),a+1!==0&&(a+1)%3==0&&a+1!==r(G)[t.dataKey].length?(l(),n("hr",pt)):v("",!0)],64)))),128))])):(l(),n("div",gt,"暂无数据"))],8,dt)),[[Kt,r(N)[t.loadingKey.toLowerCase()]]])])),_:2},1032,["name"])))),128)),c(jt,{name:"plugin"},{title:d((()=>{var t;return[o("div",vt,[e[12]||(e[12]=o("i",{class:"svgtofont-left-soft desc-i"},null,-1)),e[13]||(e[13]=o("span",{class:"font-bold"},"插件",-1)),r(N).plugin?(l(),n("i",ht)):(l(),n("span",yt,"(共"+m((null==(t=r(J))?void 0:t.length)||0)+"个)",1))])]})),default:d((()=>[u(c(_t,{column:r(E),data:r(J),"max-height":150},null,8,["column","data"]),[[Kt,r(N).plugin],[Kt,"正在获取插件中,请稍后...","title"]])])),_:1}),c(jt,{name:"runtime"},{title:d((()=>{var t;return[o("div",bt,[e[14]||(e[14]=o("i",{class:"svgtofont-el-monitor desc-i"},null,-1)),e[15]||(e[15]=o("span",{class:"font-bold"},"运行环境",-1)),r(N).runtime?(l(),n("i",wt)):(l(),n("span",kt,"(共"+m((null==(t=r(Q))?void 0:t.length)||0)+"个,共"+m(r(T))+")",1))])]})),default:d((()=>[u(c(_t,{column:r(O),data:r(Q),"max-height":150},null,8,["column","data"]),[[Kt,r(N).runtime],[Kt,"正在获取运行环境中,请稍后...","title"]])])),_:1})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-c549e94f"]]);export{_t as default};
Save File
Cancel